package com.tzbank;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;

import com.tzbank.utils.SpringContextUtils;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableDiscoveryClient
@EnableCircuitBreaker
public class SpringcloudFaceApplication extends SpringBootServletInitializer{

	public static void main(String[] args) {
		ApplicationContext applicationContext =SpringApplication.run(SpringcloudFaceApplication.class, args);
		SpringContextUtils.setApplicationContext(applicationContext);
	}

}
